/*
 * load Desk Top
 *desk_window header        nav_mainn_tab
 *desk_window container     shortcut
 */
function loadDeskTop(){
	var body=document.body;
	var windowDom="<div class='window' id='desk_window'><div class='header'><nav></nav></div><div class='container'></div></div>";
	$(body).append(windowDom);
	var header1="<a href='#' class='nav_mainn_tab'>首&nbsp;页</a>";
	var container_shortCut1="<span class='shortcut' id='temp'><img src='images/naruto.jpg'/></span>";
	container_shortCut1=container_shortCut1+"<span class='shortcut' id='video'>点击打开新窗口</span>"
	$("#desk_window .container").append(container_shortCut1)
	$("#desk_window .header nav").append(header1);
}

/*
 * Creat New Window In The Input Dom
 *obj: Parent Dom
 *id:  New Window Id
 */
function creatWindow(parent,id){
	var windowDom="<div class='window' id='"+id+"'><div class='header'><nav></nav></div><div class='container'></div></div>";
	$(parent).append(windowDom);
	$("#"+id).css("width",800);
	$("#"+id).css("height",600);
	$("#"+id).css("background-color",'red');
}

/*
 * create Video Container In The Input Dom
 *obj: Parent Dom
 *id:  New Window Id
 */
function createVideoPlayer(parent,id){
	//create window
	creatWindow(parent,id);
	var width='600';
	var height='400';
	var objectDom="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='"+width+"' height='"+height+"'>";
objectDom=objectDom+"<param name='_cx' value='15875'>";
objectDom=objectDom+"<param name='_cy' value='11906'>";
objectDom=objectDom+"<param name='FlashVars' value>";
objectDom=objectDom+"<param name='Movie' value='http://player.youku.com/player.php/sid/XMjQ0MDg1OTUy/v.swf'>";
objectDom=objectDom+"<param name='Src' value='http://player.youku.com/player.php/sid/XMjQ0MDg1OTUy/v.swf'>";
objectDom=objectDom+"<param name='WMode' value='window'>";
objectDom=objectDom+"<param name='Play' value='0'>";
objectDom=objectDom+"<param name='Loop' value='-1'>";
objectDom=objectDom+"<param name='Quality' value='Best'>";
objectDom=objectDom+"<param name='SAlign' value='LT'>";
objectDom=objectDom+"<param name='Menu' value='0'>";
objectDom=objectDom+"<param name='Base' value>";
objectDom=objectDom+"<param name='AllowScriptAccess' value='always'>";
objectDom=objectDom+"<param name='Scale' value='NoScale'>";
objectDom=objectDom+"<param name='DeviceFont' value='0'>";
objectDom=objectDom+"<param name='EmbedMovie' value='0'>";
objectDom=objectDom+"<param name='BGColor' value>";
objectDom=objectDom+"<param name='SWRemote' value>";
objectDom=objectDom+"<param name='MovieData' value>";
objectDom=objectDom+"<param name='SeamlessTabbing' value='1'>";
objectDom=objectDom+"<param name='Profile' value='0'>";
objectDom=objectDom+"<param name='ProfileAddress' value>";
objectDom=objectDom+"<param name='ProfilePort' value='0'>";
objectDom=objectDom+"<param name='AllowNetworking' value='all'>";
objectDom=objectDom+"<param name='AllowFullScreen' value='true'>";
objectDom=objectDom+"<embed src='http://player.youku.com/player.php/sid/XMjQ0MDg1OTUy/v.swf' allowFullScreen='true' quality='Best'";
objectDom=objectDom+"pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></object>"
	//append video player
	$("#"+id+" .container").append(objectDom);
	$("#"+id).css("width",width);
	$("#"+id).css("height",height);
}



